package edu.ivanov.apm.ui;

import javafx.scene.canvas.Canvas;
import javafx.scene.layout.AnchorPane;

/**
 * User: Илья
 * Date: 08.10.13
 * Time: 20:24
 */
public abstract class DrawBoard extends AnchorPane {

	private static final int WIDTH = 600;
	private static final int HEIGHT = 600;

	public DrawBoard() {
		setPrefWidth(WIDTH);
		setPrefHeight(HEIGHT);
	}

	protected Canvas addCanvas() {
		Canvas canvas = new Canvas(WIDTH, HEIGHT);
		getChildren().add(canvas);

        return canvas;
	}

    public abstract void draw();
}
